.class Lcom/netease/newsreader/activity/NewsReader$17;
.super Ljava/lang/Object;
.source "NewsReader.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/NewsReader;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/NewsReader;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/NewsReader;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/NewsReader$17;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    .line 4821
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3
    .parameter "arg0"

    .prologue
    .line 4829
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$17;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iget-object v1, v1, Lcom/netease/newsreader/activity/NewsReader;->menuWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v1}, Landroid/widget/PopupWindow;->dismiss()V

    .line 4830
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$17;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    const/4 v2, 0x0

    invoke-static {v1, v2}, Lcom/netease/newsreader/activity/NewsReader;->access$103(Lcom/netease/newsreader/activity/NewsReader;Z)V

    .line 4832
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$17;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-virtual {v1}, Lcom/netease/newsreader/activity/NewsReader;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v0

    .line 4833
    .local v0, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    invoke-virtual {v0}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->isDefaultTheme()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 4834
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$17;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    const-string v2, "night_theme"

    invoke-virtual {v0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->changeTheme(Landroid/content/Context;Ljava/lang/String;)V

    .line 4838
    :goto_0
    return-void

    .line 4836
    :cond_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$17;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    const-string v2, "default_theme"

    invoke-virtual {v0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->changeTheme(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0
.end method
